package com.javasm.mapper.goodsMapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.domin.criteria.goodsCriteria.GdTypeCriteria;
import com.javasm.domin.entity.goodsEntity.GdType;
import com.javasm.domin.vo.goodsVo.GdTypeVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Administrator
* @description 针对表【gd_type】的数据库操作Mapper
* @createDate 2021-11-19 11:19:10
* @Entity generator.domain.GdType
*/
public interface GdTypeMapper extends BaseMapper<GdType> {

    List<GdTypeVo> selectCriteria(GdTypeCriteria gdTypeCriteria);



    List<GdType> selectPid(Long id);

    @Select("select * from gd_type where category_level=#{categoryLevel}")
    List<GdType> getByCategoryLevel(int level);


    List<GdType> selectList();



}
